import { Component, OnInit, trigger, state, style, transition, animate } from '@angular/core';
import { Location }from '@angular/common';
import { Router, ActivatedRoute, ParamMap } from '@angular/router';
import { Headers, Http } from '@angular/http';
import 'rxjs/add/operator/toPromise';
import { AjaxService } from "./commons/ajax.service";

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})

export class AppComponent implements OnInit {

  private headers = new Headers({'Content-Type': 'application/json'});

  constructor(
    private location: Location,
    private http: Http,
    private router: Router,
    private ajaxSerivce: AjaxService
  ) { }

  ngOnInit() {
    let path = this.location.path(true);
    console.log(path)
  }
}
